package com.argerie.robot;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.widget.Toast;

public class BasicRobotControls extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        MenuInflater inflater = getMenuInflater();
        inflater.inflate(R.menu.menu_data, menu);
        return true;
    }
    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
    	switch (item.getItemId()) {
    		case R.id.main:          
    			Toast.makeText(this, "Already There!", Toast.LENGTH_SHORT).show();
    			break;
    		case R.id.gps_menu:
    			Intent myIntent = new Intent(BasicRobotControls.this, GpsControls.class);
    			BasicRobotControls.this.startActivity(myIntent);
    	}
    	return(super.onOptionsItemSelected(item));
    }

}